package org.example;

@Component
//@Scope("prototype")
@Scope
@Lazy
public class MyService implements InitializingBean {

    @Autowired
    private UserService userService;
    @Autowired
    private MeService meService;

    public void test() {
        System.out.println("Hello World!");
        System.out.println(userService);
        System.out.println(meService);
    }

    @PostConstruct
    public void a(){
        System.out.println("a....");
    }

    @Override
    public void afterPropertiesSet() {
        System.out.println("afterPropertiesSet....");
    }
}
